import AppPage from '@/layout/index';

const MyCenterRoute = {
  path: '/center',
  component: AppPage,
  redirect: 'cardVolume',
  name: 'AppPage',
  meta: {
    title: '个人中心',
  },
  children: [
    {
      path: 'cardVolume',
      component: () => import('@/views/my-center/CardVolume'),
      name: 'CardVolume',
      meta: { title: '优惠卷' },
    },
    {
      path: 'addressAdmin',
      component: () => import('@/views/my-center/AddressAdmin'),
      name: 'AddressAdmin',
      meta: { title: '收货地址' },
    },
    {
      path: 'createAddress',
      component: () => import('@/views/my-center/CreateAddress'),
      name: 'CreateAddress',
      meta: { title: '创建收获地址' },
    },
    {
      path: 'editAddress',
      component: () => import('@/views/my-center/EditAddress'),
      name: 'EditAddress',
      meta: { title: '编辑收货地址' },
    },
  ],
};

export default MyCenterRoute;
